<?php echo $this->fetch('header.html'); ?>

<script type="text/javascript">
    $(function() {
        $('#page-job-apply_form').validate({
            errorPlacement: function(error, element) {
                var error_td = element.parent('td').next('td');
                error_td.find('.field_notice').hide();
                error_td.find('.red').hide();
                error_td.append(error);
            },
            success: function(label) {
                label.addClass('validate_right').text('OK!');
            },
            onkeyup: false,
            rules: {
                name: {
                    required: true
                },
                telephone: {
                    required: true,
                    minlength: 6,
                    checkTel: true
                }
            },
            messages: {
                name: {
                    required: '必须填写姓名'
                },
                telephone: {
                    required: '必须填写联系电话',
                    minlength: '联系电话格式有误',
                    checkTel: '联系电话格式有误'
                }
            }
        });
    });
</script>
<section class="page_job">
    <form method="post"  id="page-job-apply_form">
        <ul class="form_content">
            <li>
                <p>
                    <select name="job_id" id="job_id">
                        <?php $_from = $this->_var['jobs']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'job');if (count($_from)):
    foreach ($_from AS $this->_var['job']):
?>
                        <option value="<?php echo $this->_var['job']['job_id']; ?>" <?php if ($this->_var['job']['job_id'] == $this->_var['id']): ?> selected="selected"<?php endif; ?>><?php echo $this->_var['job']['position']; ?></option>
                        <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
                    </select>
                </p>
            </li>
            <li>
                <p><input type="text" name="name" id="name" value="" placeholder="姓名"/></p>
            </li>
            <li>
                <p>
                    <input name="sex" type="radio" id="man" value="0" checked="checked">
                    <label for="man">先生</label>
                    <input name="sex" type="radio" id="women" value="1">
                    <label for="women">女士</label>
                </p>
            </li>
            <li>
                <p><input type="text" name="birthday" id="birthday" value=""  placeholder="出生年月"/></p>
            </li>
            <li>
                <p><input type="text" name="native_place" id="native_place" value="" placeholder="籍贯"/></p>
            </li>
            <li>
                <p><input type="text" name="telephone" id="telephone" value="" placeholder="联系电话"/></p>
            </li>
            <li>
                <p><input type="text" name="zip_code" id="zip_code" value="" placeholder="邮编"/></p>
            </li>
            <li>
                <p><input type="text" name="email" id="email" value="" placeholder="E–mail"/></p>
            </li>
            <li>
                <p><input type="text" name="education" id="education" value="" placeholder="学历"/></p>
            </li>
            <li>
                <p><input type="text" name="professional" id="professional" value="" placeholder="专业"/></p>
            </li>
            <li>
                <p><input type="text" name="school" id="school" value="" placeholder="学校"/></p>
            </li>
            <li>
                <p><input type="text" name="address" id="address" value="" placeholder="通讯地址"/></p>
            </li>
            <li>
                <p><textarea name="awards" cols="60" rows="5"  placeholder="所获奖项"></textarea></p>
            </li>
            <li>
                <p><textarea name="experience" cols="60" rows="5"  placeholder="工作经历"></textarea></p>
            </li>
            <li>
                <p><textarea name="hobbies" cols="60" rows="5"  placeholder="业余爱好"></textarea></p>
            </li>
            <li>
                <p><input type="submit" value="提交信息" class="red_btn"/></p>
            </li>
        </ul>

    </form>
</section>



<?php echo $this->fetch('footer.html'); ?>